html {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
}

body {
    --borderColor: #ebeef5;
    --mainColor: #1890ff;
    --mainFontColor: #333;
    --dangerColor: #f9665c;
    --dangerMinColor: #ff8880;
    --successColor: #67c23a;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    background-color: #f0f0f0;
    color: #0f0f0f;
    font-size: 14px;
}

#app {
    width: 100%;
    height: 100%;
}

/*表格样式*/
.el-table {
    tr {
        th {
            padding: 10px 0 !important;
            color: #636363;
            background-color: #f9f9f9 !important;
        }
    }
}

.el-table--border td,
.el-table--border th,
.el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
    border-right: 0 !important;
}

.el-table__row {
    td:not([rowspan="1"]) {
        border-right: 1px solid #f1f1f1 !important;
    }
}

.lists-edit-icon,
.lists-delete-icon {
    cursor: pointer;
    padding: 5px;
    font-size: 16px !important;
    margin-right: 10px;
}

/*表单*/
.el-input.is-disabled {
    .el-input__inner {
        background-color: #fff !important;
        border-color: transparent !important;
        color: #333 !important;
    }

    .el-input__icon {
        display: none;
    }

    .el-input-group__append {
        border-left: 1px solid #DCDFE6;
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }

}

.el-textarea.is-disabled {
    .el-textarea__inner {
        background-color: #fff !important;
        border-color: transparent !important;
    }
}

.el-range-editor.is-disabled {
    background-color: #fff !important;
    border-color: transparent !important;

    .el-icon-time {
        display: none;
    }

    input {
        background-color: #fff !important;
        border-color: transparent !important;
        color: #333 !important;
    }

}

.el-form-item__label {
    line-height: 40px !important;
}

.el-input.is-disabled .el-input__inner,
.el-textarea.is-disabled .el-textarea__inner {
    color: #606266 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.el-radio__input.is-disabled.is-checked .el-radio__inner {
    border-color: #409EFF !important;
    background: #409EFF !important;
}

.el-radio__input.is-disabled.is-checked .el-radio__inner::after {
    background-color: #fff !important;
}

.el-radio__input.is-disabled+span.el-radio__label {
    color: #606266 !important;
}

.el-radio__input.is-checked.is-disabled+span.el-radio__label {
    color: #409EFF !important;
}

.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner {
    background-color: #409EFF !important;
    border-color: #409EFF !important;
}

.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner::after {
    border-color: #fff !important;
}

.el-checkbox__input.is-disabled+span.el-checkbox__label {
    color: #606266 !important;
}

.el-checkbox__input.is-checked.is-disabled+span.el-checkbox__label {
    color: #409EFF !important;
}

.el-upload-list.is-disabled {
    .el-upload-list__item {
        border: none;
    }

    .el-upload-list__item-status-label {
        display: none !important;
    }

    .el-upload--picture-card {
        display: none !important;
    }
}

/* 页面工具栏card */
.table-card {
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: none !important;
    border-bottom: 0 !important;

    .el-card__header {
        border-bottom: 0;
    }

    .el-card__body {
        display: none;
    }
}

/*搜索条件*/
.search-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;

    .search-left,
    .search-right {
        display: flex;
        align-items: center;
    }
}

.search-form {
    overflow: hidden;
    padding-top: 18px;

    .el-form-item {
        width: 30%;
        float: left;
    }


    .el-form-item:nth-child(3n+1),
    .el-form-item:nth-child(3n+2) {
        margin-right: 4.5%
    }

    .el-form-item__label {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: 40px;
        line-height: 40px;
    }

}

.box-card {
    margin-bottom: 20px
}

.el-loading-parent--relative {
    position: relative !important;
    pointer-events: auto !important;
    -webkit-user-select: auto !important;
    -moz-user-select: auto !important;
    -ms-user-select: auto !important;
    user-select: auto !important;
}

.card-header-box {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

// 滚动条
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-thumb {
    cursor: pointer;
    border-radius: 500px;
    background-color: rgba(144, 147, 153, 0.6);
    transition: background-color 0.3s;
}

::-webkit-scrollbar-thumb:window-inactive {
    cursor: pointer;
    border-radius: 500px;
    background-color: rgba(144, 147, 153, 0.6);
    transition: background-color 0.3s;
}

// 公共提交按钮
.submit-btn{
    width: 800px!important;
    height: 50px;
    position: absolute!important;
    bottom: 70px;
    left: 50%;
    right: 0;
    transform: translateX(-50%);

    .el-input__wrapper {
      padding: 20px 20px;
      background-color: #40414f;
      border-color: #40414f;
      box-shadow: none !important;
      font-size: 18px;

      input {
        color: #fff;
      }

      .el-input__inner::placeholder {
        font-size: 16px;
        color: var(--dangerColor);
      }
    }
}

.submit-textarea-box{
    width: 800px!important;
    min-height: 50px;
    position: absolute!important;
    bottom: 70px;
    left: 50%;
    right: 0;
    transform: translateX(-50%);
    display: flex;
    justify-content: flex-start;
    align-items: stretch;

    .textarea-input{
        border-radius: 0;

        .el-textarea__inner{
            border-radius: 8px;
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
            width: 754px;
            padding: 20px 20px;
            background-color: #40414f;
            border-color: #40414f;
            box-shadow: none !important;
            font-size: 18px;
            // height: auto!important;
            color: #fff;
        }
    }

    .input-submit{
        width: 46px;
        height: auto;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }
}
// 内容
  .context-box {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 160px;
    overflow-y: auto;
    .context-item {
      @include flex(row, center, center);
      width: 100%;
      padding: 25px;
      box-sizing: border-box;
      border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    //   border-bottom: 0;

      .context-item-content {
        width: 800px;
        @include flex();
      }
      .avatar {
        width: 30px;
        height: 30px;
        border-radius: 5px;
        overflow: hidden;
        margin-right: 25px;
        @include flex(row, center, center);

        .img {
          width: 30px;
          height: 30px;
        }
      }

      .text-box {
        flex: 1;
        .text-item {
          // margin-bottom: 20px;
          font-size: 14px;
          color: #fff;
        }
      }
    }

    // .context-item:last-child {
    //   border: 1px solid rgba(0, 0, 0, 0.1);
    // }
    .context-item.people {
      .avatar {
        background-color: #2ccd72;
        font-size: 18px;
        color: #f3fcf7;
      }
    }
    .context-item.ai {
      background-color: #444654;
    }
  }